package commons.test;

import java.io.IOException;
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;

import javax.net.SocketFactory;

public class DummySocketFactory extends SocketFactory {

	@Override
	public Socket createSocket(final InetAddress host, final int port)
			throws IOException {
		return null;
	}

	@Override
	public Socket createSocket(final InetAddress address, final int port,
			final InetAddress localAddress, final int localPort)
			throws IOException {
		return null;
	}

	@Override
	public Socket createSocket(final String host, final int port)
			throws IOException, UnknownHostException {
		return new DummySocket();
	}

	@Override
	public Socket createSocket(final String host, final int port,
			final InetAddress localHost, final int localPort)
			throws IOException, UnknownHostException {
		return null;
	}
}
